using UnityEngine;

public class StatScrollTrigger : TriggerBase
{
    [SerializeField] private SlotScrollDataListSO _slotScrollDataListSO;
    protected override void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player") == false)
            return;

        EventCenter.TriggerEvent(EventName.UI_OpenSlotSelectPanel, _slotScrollDataListSO.slotScrollDatas);
        
        Destroy(gameObject);
    }
}
